package web_wms_model

import (
	"time"
)

const TableNameWmCustomer = "wm_customer"

// WmCustomer mapped from table <wm_customer>
type WmCustomer struct {
	ID            string    `gorm:"column:id;type:nvarchar;primaryKey" json:"id"`
	CustomerCode  string    `gorm:"column:customer_code;type:nvarchar;not null" json:"customer_code"`
	CustomerType  string    `gorm:"column:customer_type;type:varchar;not null" json:"customer_type"`
	ExpressionCn  string    `gorm:"column:expression_cn;type:nvarchar" json:"expression_cn"`
	ExpressionEn  string    `gorm:"column:expression_en;type:nvarchar" json:"expression_en"`
	Address       string    `gorm:"column:address;type:nvarchar" json:"address"`
	Route         string    `gorm:"column:route;type:nvarchar" json:"route"`
	ActiveFlag    string    `gorm:"column:active_flag;type:char;default:1" json:"active_flag"`
	Contact       string    `gorm:"column:contact;type:nvarchar" json:"contact"`
	Telephone     string    `gorm:"column:telephone;type:nvarchar" json:"telephone"`
	Owner         string    `gorm:"column:owner;type:nvarchar" json:"owner"`
	ShortCode     string    `gorm:"column:short_code;type:nvarchar" json:"short_code"`
	CreateTime    time.Time `gorm:"column:create_time;type:datetime" json:"create_time"`
	UpdateTime    time.Time `gorm:"column:update_time;type:datetime" json:"update_time"`
	TransportUnit string    `gorm:"column:transport_unit;type:nvarchar" json:"transport_unit"`
	DeliveryAddr  string    `gorm:"column:delivery_addr;type:nvarchar" json:"delivery_addr"`
	MedClas       string    `gorm:"column:med_clas;type:nvarchar" json:"med_clas"`
}

// TableName WmCustomer's table name
func (*WmCustomer) TableName() string {
	return TableNameWmCustomer
}
